#include <QtGui/QApplication>
#include <QTranslator>
#include <QLocale>

#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    //QTranslator qtTranslator;
    //qtTranslator.load("qt_" + QLocale::system().name(),
    //            QLibraryInfo::location(QLibraryInfo::TranslationsPath));
    //a.installTranslator(&qtTranslator);

    QTranslator myappTranslator;
    myappTranslator.load("locale/rating_manager_ru.qm");
    a.installTranslator(&myappTranslator);

    MainWindow w;
    w.show();

    return a.exec();
}
